/**
 * ItemContainer_QuestionBox
 * @deprecated - just use ItemContainer
 * @extends ItemContainer
 * @version 2010.12.03
 */

class ItemContainer_QuestionBox extends ItemContainer;

var StaticMeshComponent objMesh;
var Class<Actor> ItemToSpawn;

/**
 * OnHitBottom
 * @version 2010.12.03
 */
function OnHitBottom(MarioPawn Other) 
{
	local Vector vect;
	`log("Player hit on bottom!");
	//Spawn(ItemToSpawn,,,Location,);
	if(PlayerController(Other.Controller).PlayerCamera.CameraStyle == 'small'){
				`log("mushroom");
				Spawn(Class'MarioItem_Mushroom',,,Location,);
		}
		else{
				vect.X = Location.X;
				vect.Y = Location.Y;
				vect.Z = Location.Z + 80;
				`log("flower");
				Spawn(Class'MarioItem_Flower',,,vect,);
		}
	
}

defaultproperties
{

	ItemToSpawn = Class'MarioItem_MushRoom';
}